<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>专卖店查询</title>
<meta name="description" content="hm">
<meta name="keywords" content="hm,hm">

<%template src="_css.html"%>

</head>
<body>

<!--Header-->
<%template src="_header.html"%>

<!--/Header-->
<script  type="text/javascript" >
  //确认发货
    function OrderExpress(obj) {

      //  var map = new BMap.Map("idmap");
        var data = $(obj).attr("title");


        var dialog = $.dialog({
            title: "查看地图",
            content: 'url:ditu_show.aspx?id='+data,
            min: false,
            max: false,
            lock: true,
            width:500,
            height:500
            
        });
    }
    

  
    //请求评论数据
    $(function() {
        InitComment("北京");
    });
    function InitComment(page_id) {
        var listDiv = $("#diqulist");
        var obj = page_id;
        $.ajax({
            type: "POST",
            dataType: "json",
            url: "{config.webpath}tools/submit_ajax.ashx?action=getdiqulist&diqu=" + obj,
            beforeSend: function (XMLHttpRequest) {
                $(listDiv).html('<li style="line-height:35px;">正在很努力加载，请稍候...</li>');
            },
            success: function (data) {
                //$(listDiv).html(data);
                var strHtml = '<li class="tt">店铺查询</li>' +
           '<li class="tt">在地图上具体位置</li>' +
            '<li class="tt">店铺相关信息</li>';
                for (var i in data) {
                    strHtml += '<li><div class="tt"> <h3>' + data[i].title + '</h3><p>' + data[i].address + '</p>  </div> </li>';

                    strHtml += '<li><div class="tt"> <p><a href="javascript:void(0);" onclick="OrderExpress(this);" title="' + data[i].id + '" diqu="' + data[i].diqu + '" class="select-line">在地图上查找具体位置</a></p> </div> </li>';

                    strHtml += '<li><div class="tt"> <p>联系电话：' + data[i].tel + '</p> <p>营业时间：' + data[i].openingtime + '</p></div> </li> <li class="h_line_1"></li>';




                }


                $(listDiv).html(strHtml);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                $(listDiv).html('<p style="line-height:35px;">暂无店铺！</p>');
            }
        });
    }

</script>

<div style="background:url(<%templateskin%>/images/h_img.jpg) no-repeat top center; width:100%; height:352px; border-bottom:1px #7a7a7a solid;">

</div>
<div class="inner">

	<div class="shop-search">
		<ul class="clearfix shops-select">
        	<!--<li><a href="#" class="select-line">搜索离您最近的店铺</a></li>-->
            <li><select name="" class="select-lines"><option>中国</option></select></li>
            <li><select name="" class="select-lines" onchange="InitComment($(this).val())"><option   value="北京">北京</option>
            <option   value="太原">太原</option>
         <option   value="哈尔滨">哈尔滨</option>
         <option   value="沈阳">沈阳</option>
         <option   value="长春">长春</option>
<option   value="乌鲁木齐">乌鲁木齐</option>
<option   value="天津">天津</option>

<option   value="西安">西安</option>
<option   value="徐州">徐州</option>
<option   value="昆明">昆明</option>
<option   value="成都">成都</option>
         <option   value="重庆">重庆</option>
          <option   value="珠海">珠海</option>
           <option   value="澳门">澳门</option>
            </select></li>
        </ul><!--end shops-celect -->
        
        
        
        <ul class="clearfix recont-list" id="diqulist">
        	
            
        </ul>
    </div><!--end shop-search -->
    
</div>
<script type="text/javascript" src="{config.webpath}scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>

<%template src="_footer.html"%>


</body>
</html>
